package ability654

import (
	"errors"
	"gitee.com/cjsn/topsdk"
	"gitee.com/cjsn/topsdk/ability654/request"
	"gitee.com/cjsn/topsdk/ability654/response"
	"gitee.com/cjsn/topsdk/util"
	"log"
)

type Ability654 struct {
	Client *topsdk.TopClient
}

func NewAbility654(client *topsdk.TopClient) *Ability654 {
	return &Ability654{client}
}

/*
工人信息查询
*/
func (ability *Ability654) TmallServicecenterWorkerQuery(req *request.TmallServicecenterWorkerQueryRequest, session string) (*response.TmallServicecenterWorkerQueryResponse, error) {
	if ability.Client == nil {
		return nil, errors.New("Ability654 topClient is nil")
	}
	var jsonStr, err = ability.Client.ExecuteWithSession("tmall.servicecenter.worker.query", req.ToMap(), req.ToFileMap(), session)
	var respStruct = response.TmallServicecenterWorkerQueryResponse{}
	if err != nil {
		log.Println("tmallServicecenterWorkerQuery error", err)
		return &respStruct, err
	}
	err = util.HandleJsonResponse(jsonStr, &respStruct)
	if respStruct.Body == "" || len(respStruct.Body) == 0 {
		respStruct.Body = jsonStr
	}
	return &respStruct, err
}

/*
服务供应链服务类型
*/
func (ability *Ability654) TmallServicecenterServiceTypeQueryall(req *request.TmallServicecenterServiceTypeQueryallRequest, session string) (*response.TmallServicecenterServiceTypeQueryallResponse, error) {
	if ability.Client == nil {
		return nil, errors.New("Ability654 topClient is nil")
	}
	var jsonStr, err = ability.Client.ExecuteWithSession("tmall.servicecenter.service.type.queryall", req.ToMap(), req.ToFileMap(), session)
	var respStruct = response.TmallServicecenterServiceTypeQueryallResponse{}
	if err != nil {
		log.Println("tmallServicecenterServiceTypeQueryall error", err)
		return &respStruct, err
	}
	err = util.HandleJsonResponse(jsonStr, &respStruct)
	if respStruct.Body == "" || len(respStruct.Body) == 0 {
		respStruct.Body = jsonStr
	}
	return &respStruct, err
}

/*
服务商工人信息创建
*/
func (ability *Ability654) TmallServicecenterWorkerCreate(req *request.TmallServicecenterWorkerCreateRequest, session string) (*response.TmallServicecenterWorkerCreateResponse, error) {
	if ability.Client == nil {
		return nil, errors.New("Ability654 topClient is nil")
	}
	var jsonStr, err = ability.Client.ExecuteWithSession("tmall.servicecenter.worker.create", req.ToMap(), req.ToFileMap(), session)
	var respStruct = response.TmallServicecenterWorkerCreateResponse{}
	if err != nil {
		log.Println("tmallServicecenterWorkerCreate error", err)
		return &respStruct, err
	}
	err = util.HandleJsonResponse(jsonStr, &respStruct)
	if respStruct.Body == "" || len(respStruct.Body) == 0 {
		respStruct.Body = jsonStr
	}
	return &respStruct, err
}

/*
查询任务类工单是否退款
*/
func (ability *Ability654) TmallServicecenterTaskQueryrefund(req *request.TmallServicecenterTaskQueryrefundRequest, session string) (*response.TmallServicecenterTaskQueryrefundResponse, error) {
	if ability.Client == nil {
		return nil, errors.New("Ability654 topClient is nil")
	}
	var jsonStr, err = ability.Client.ExecuteWithSession("tmall.servicecenter.task.queryrefund", req.ToMap(), req.ToFileMap(), session)
	var respStruct = response.TmallServicecenterTaskQueryrefundResponse{}
	if err != nil {
		log.Println("tmallServicecenterTaskQueryrefund error", err)
		return &respStruct, err
	}
	err = util.HandleJsonResponse(jsonStr, &respStruct)
	if respStruct.Body == "" || len(respStruct.Body) == 0 {
		respStruct.Body = jsonStr
	}
	return &respStruct, err
}

/*
获取服务商品扩展信息
*/
func (ability *Ability654) TmallFuwuServiceitemList(req *request.TmallFuwuServiceitemListRequest, session string) (*response.TmallFuwuServiceitemListResponse, error) {
	if ability.Client == nil {
		return nil, errors.New("Ability654 topClient is nil")
	}
	var jsonStr, err = ability.Client.ExecuteWithSession("tmall.fuwu.serviceitem.list", req.ToMap(), req.ToFileMap(), session)
	var respStruct = response.TmallFuwuServiceitemListResponse{}
	if err != nil {
		log.Println("tmallFuwuServiceitemList error", err)
		return &respStruct, err
	}
	err = util.HandleJsonResponse(jsonStr, &respStruct)
	if respStruct.Body == "" || len(respStruct.Body) == 0 {
		respStruct.Body = jsonStr
	}
	return &respStruct, err
}

/*
获取合同类的服务工单信息
*/
func (ability *Ability654) TmallServicecenterContractsSearch(req *request.TmallServicecenterContractsSearchRequest, session string) (*response.TmallServicecenterContractsSearchResponse, error) {
	if ability.Client == nil {
		return nil, errors.New("Ability654 topClient is nil")
	}
	var jsonStr, err = ability.Client.ExecuteWithSession("tmall.servicecenter.contracts.search", req.ToMap(), req.ToFileMap(), session)
	var respStruct = response.TmallServicecenterContractsSearchResponse{}
	if err != nil {
		log.Println("tmallServicecenterContractsSearch error", err)
		return &respStruct, err
	}
	err = util.HandleJsonResponse(jsonStr, &respStruct)
	if respStruct.Body == "" || len(respStruct.Body) == 0 {
		respStruct.Body = jsonStr
	}
	return &respStruct, err
}

/*
查询任务类工单信息
*/
func (ability *Ability654) TmallServicecenterTasksSearch(req *request.TmallServicecenterTasksSearchRequest, session string) (*response.TmallServicecenterTasksSearchResponse, error) {
	if ability.Client == nil {
		return nil, errors.New("Ability654 topClient is nil")
	}
	var jsonStr, err = ability.Client.ExecuteWithSession("tmall.servicecenter.tasks.search", req.ToMap(), req.ToFileMap(), session)
	var respStruct = response.TmallServicecenterTasksSearchResponse{}
	if err != nil {
		log.Println("tmallServicecenterTasksSearch error", err)
		return &respStruct, err
	}
	err = util.HandleJsonResponse(jsonStr, &respStruct)
	if respStruct.Body == "" || len(respStruct.Body) == 0 {
		respStruct.Body = jsonStr
	}
	return &respStruct, err
}

/*
服务商反馈服务的执行情况
*/
func (ability *Ability654) TmallServicecenterWorkcardStatusUpdate(req *request.TmallServicecenterWorkcardStatusUpdateRequest, session string) (*response.TmallServicecenterWorkcardStatusUpdateResponse, error) {
	if ability.Client == nil {
		return nil, errors.New("Ability654 topClient is nil")
	}
	var jsonStr, err = ability.Client.ExecuteWithSession("tmall.servicecenter.workcard.status.update", req.ToMap(), req.ToFileMap(), session)
	var respStruct = response.TmallServicecenterWorkcardStatusUpdateResponse{}
	if err != nil {
		log.Println("tmallServicecenterWorkcardStatusUpdate error", err)
		return &respStruct, err
	}
	err = util.HandleJsonResponse(jsonStr, &respStruct)
	if respStruct.Body == "" || len(respStruct.Body) == 0 {
		respStruct.Body = jsonStr
	}
	return &respStruct, err
}

/*
服务商更新预警消息状态
*/
func (ability *Ability654) TmallServicecenterServicemonitormessageUpdate(req *request.TmallServicecenterServicemonitormessageUpdateRequest, session string) (*response.TmallServicecenterServicemonitormessageUpdateResponse, error) {
	if ability.Client == nil {
		return nil, errors.New("Ability654 topClient is nil")
	}
	var jsonStr, err = ability.Client.ExecuteWithSession("tmall.servicecenter.servicemonitormessage.update", req.ToMap(), req.ToFileMap(), session)
	var respStruct = response.TmallServicecenterServicemonitormessageUpdateResponse{}
	if err != nil {
		log.Println("tmallServicecenterServicemonitormessageUpdate error", err)
		return &respStruct, err
	}
	err = util.HandleJsonResponse(jsonStr, &respStruct)
	if respStruct.Body == "" || len(respStruct.Body) == 0 {
		respStruct.Body = jsonStr
	}
	return &respStruct, err
}

/*
根据时间段查询服务商的服务预警消息列表(15分钟内)
*/
func (ability *Ability654) TmallServicecenterServicemonitormessageSearch(req *request.TmallServicecenterServicemonitormessageSearchRequest, session string) (*response.TmallServicecenterServicemonitormessageSearchResponse, error) {
	if ability.Client == nil {
		return nil, errors.New("Ability654 topClient is nil")
	}
	var jsonStr, err = ability.Client.ExecuteWithSession("tmall.servicecenter.servicemonitormessage.search", req.ToMap(), req.ToFileMap(), session)
	var respStruct = response.TmallServicecenterServicemonitormessageSearchResponse{}
	if err != nil {
		log.Println("tmallServicecenterServicemonitormessageSearch error", err)
		return &respStruct, err
	}
	err = util.HandleJsonResponse(jsonStr, &respStruct)
	if respStruct.Body == "" || len(respStruct.Body) == 0 {
		respStruct.Body = jsonStr
	}
	return &respStruct, err
}

/*
工单完结
*/
func (ability *Ability654) TmallServicecenterWorkcardComplete(req *request.TmallServicecenterWorkcardCompleteRequest, session string) (*response.TmallServicecenterWorkcardCompleteResponse, error) {
	if ability.Client == nil {
		return nil, errors.New("Ability654 topClient is nil")
	}
	var jsonStr, err = ability.Client.ExecuteWithSession("tmall.servicecenter.workcard.complete", req.ToMap(), req.ToFileMap(), session)
	var respStruct = response.TmallServicecenterWorkcardCompleteResponse{}
	if err != nil {
		log.Println("tmallServicecenterWorkcardComplete error", err)
		return &respStruct, err
	}
	err = util.HandleJsonResponse(jsonStr, &respStruct)
	if respStruct.Body == "" || len(respStruct.Body) == 0 {
		respStruct.Body = jsonStr
	}
	return &respStruct, err
}

/*
工单揽件
*/
func (ability *Ability654) TmallServicecenterWorkcardCollect(req *request.TmallServicecenterWorkcardCollectRequest, session string) (*response.TmallServicecenterWorkcardCollectResponse, error) {
	if ability.Client == nil {
		return nil, errors.New("Ability654 topClient is nil")
	}
	var jsonStr, err = ability.Client.ExecuteWithSession("tmall.servicecenter.workcard.collect", req.ToMap(), req.ToFileMap(), session)
	var respStruct = response.TmallServicecenterWorkcardCollectResponse{}
	if err != nil {
		log.Println("tmallServicecenterWorkcardCollect error", err)
		return &respStruct, err
	}
	err = util.HandleJsonResponse(jsonStr, &respStruct)
	if respStruct.Body == "" || len(respStruct.Body) == 0 {
		respStruct.Body = jsonStr
	}
	return &respStruct, err
}

/*
新增网点覆盖的服务
*/
func (ability *Ability654) TmallServicecenterServicestoreCreateservicestorecoverservice(req *request.TmallServicecenterServicestoreCreateservicestorecoverserviceRequest, session string) (*response.TmallServicecenterServicestoreCreateservicestorecoverserviceResponse, error) {
	if ability.Client == nil {
		return nil, errors.New("Ability654 topClient is nil")
	}
	var jsonStr, err = ability.Client.ExecuteWithSession("tmall.servicecenter.servicestore.createservicestorecoverservice", req.ToMap(), req.ToFileMap(), session)
	var respStruct = response.TmallServicecenterServicestoreCreateservicestorecoverserviceResponse{}
	if err != nil {
		log.Println("tmallServicecenterServicestoreCreateservicestorecoverservice error", err)
		return &respStruct, err
	}
	err = util.HandleJsonResponse(jsonStr, &respStruct)
	if respStruct.Body == "" || len(respStruct.Body) == 0 {
		respStruct.Body = jsonStr
	}
	return &respStruct, err
}

/*
新增网点容量
*/
func (ability *Ability654) TmallServicecenterServicestoreCreateservicestorecapacity(req *request.TmallServicecenterServicestoreCreateservicestorecapacityRequest, session string) (*response.TmallServicecenterServicestoreCreateservicestorecapacityResponse, error) {
	if ability.Client == nil {
		return nil, errors.New("Ability654 topClient is nil")
	}
	var jsonStr, err = ability.Client.ExecuteWithSession("tmall.servicecenter.servicestore.createservicestorecapacity", req.ToMap(), req.ToFileMap(), session)
	var respStruct = response.TmallServicecenterServicestoreCreateservicestorecapacityResponse{}
	if err != nil {
		log.Println("tmallServicecenterServicestoreCreateservicestorecapacity error", err)
		return &respStruct, err
	}
	err = util.HandleJsonResponse(jsonStr, &respStruct)
	if respStruct.Body == "" || len(respStruct.Body) == 0 {
		respStruct.Body = jsonStr
	}
	return &respStruct, err
}

/*
修改网点信息
*/
func (ability *Ability654) TmallServicecenterServicestoreUpdateservicestore(req *request.TmallServicecenterServicestoreUpdateservicestoreRequest, session string) (*response.TmallServicecenterServicestoreUpdateservicestoreResponse, error) {
	if ability.Client == nil {
		return nil, errors.New("Ability654 topClient is nil")
	}
	var jsonStr, err = ability.Client.ExecuteWithSession("tmall.servicecenter.servicestore.updateservicestore", req.ToMap(), req.ToFileMap(), session)
	var respStruct = response.TmallServicecenterServicestoreUpdateservicestoreResponse{}
	if err != nil {
		log.Println("tmallServicecenterServicestoreUpdateservicestore error", err)
		return &respStruct, err
	}
	err = util.HandleJsonResponse(jsonStr, &respStruct)
	if respStruct.Body == "" || len(respStruct.Body) == 0 {
		respStruct.Body = jsonStr
	}
	return &respStruct, err
}

/*
删除网点
*/
func (ability *Ability654) TmallServicecenterServicestoreDeleteservicestore(req *request.TmallServicecenterServicestoreDeleteservicestoreRequest, session string) (*response.TmallServicecenterServicestoreDeleteservicestoreResponse, error) {
	if ability.Client == nil {
		return nil, errors.New("Ability654 topClient is nil")
	}
	var jsonStr, err = ability.Client.ExecuteWithSession("tmall.servicecenter.servicestore.deleteservicestore", req.ToMap(), req.ToFileMap(), session)
	var respStruct = response.TmallServicecenterServicestoreDeleteservicestoreResponse{}
	if err != nil {
		log.Println("tmallServicecenterServicestoreDeleteservicestore error", err)
		return &respStruct, err
	}
	err = util.HandleJsonResponse(jsonStr, &respStruct)
	if respStruct.Body == "" || len(respStruct.Body) == 0 {
		respStruct.Body = jsonStr
	}
	return &respStruct, err
}

/*
删除网点覆盖的服务
*/
func (ability *Ability654) TmallServicecenterServicestoreDeleteservicestorecoverservice(req *request.TmallServicecenterServicestoreDeleteservicestorecoverserviceRequest, session string) (*response.TmallServicecenterServicestoreDeleteservicestorecoverserviceResponse, error) {
	if ability.Client == nil {
		return nil, errors.New("Ability654 topClient is nil")
	}
	var jsonStr, err = ability.Client.ExecuteWithSession("tmall.servicecenter.servicestore.deleteservicestorecoverservice", req.ToMap(), req.ToFileMap(), session)
	var respStruct = response.TmallServicecenterServicestoreDeleteservicestorecoverserviceResponse{}
	if err != nil {
		log.Println("tmallServicecenterServicestoreDeleteservicestorecoverservice error", err)
		return &respStruct, err
	}
	err = util.HandleJsonResponse(jsonStr, &respStruct)
	if respStruct.Body == "" || len(respStruct.Body) == 0 {
		respStruct.Body = jsonStr
	}
	return &respStruct, err
}

/*
服务网点创建
*/
func (ability *Ability654) TmallServicecenterServicestoreCreateservicestore(req *request.TmallServicecenterServicestoreCreateservicestoreRequest, session string) (*response.TmallServicecenterServicestoreCreateservicestoreResponse, error) {
	if ability.Client == nil {
		return nil, errors.New("Ability654 topClient is nil")
	}
	var jsonStr, err = ability.Client.ExecuteWithSession("tmall.servicecenter.servicestore.createservicestore", req.ToMap(), req.ToFileMap(), session)
	var respStruct = response.TmallServicecenterServicestoreCreateservicestoreResponse{}
	if err != nil {
		log.Println("tmallServicecenterServicestoreCreateservicestore error", err)
		return &respStruct, err
	}
	err = util.HandleJsonResponse(jsonStr, &respStruct)
	if respStruct.Body == "" || len(respStruct.Body) == 0 {
		respStruct.Body = jsonStr
	}
	return &respStruct, err
}

/*
工单核销
*/
func (ability *Ability654) TmallWorkcardIdentify(req *request.TmallWorkcardIdentifyRequest, session string) (*response.TmallWorkcardIdentifyResponse, error) {
	if ability.Client == nil {
		return nil, errors.New("Ability654 topClient is nil")
	}
	var jsonStr, err = ability.Client.ExecuteWithSession("tmall.workcard.identify", req.ToMap(), req.ToFileMap(), session)
	var respStruct = response.TmallWorkcardIdentifyResponse{}
	if err != nil {
		log.Println("tmallWorkcardIdentify error", err)
		return &respStruct, err
	}
	err = util.HandleJsonResponse(jsonStr, &respStruct)
	if respStruct.Body == "" || len(respStruct.Body) == 0 {
		respStruct.Body = jsonStr
	}
	return &respStruct, err
}

/*
删除工人
*/
func (ability *Ability654) TmallServicecenterWorkerDelete(req *request.TmallServicecenterWorkerDeleteRequest, session string) (*response.TmallServicecenterWorkerDeleteResponse, error) {
	if ability.Client == nil {
		return nil, errors.New("Ability654 topClient is nil")
	}
	var jsonStr, err = ability.Client.ExecuteWithSession("tmall.servicecenter.worker.delete", req.ToMap(), req.ToFileMap(), session)
	var respStruct = response.TmallServicecenterWorkerDeleteResponse{}
	if err != nil {
		log.Println("tmallServicecenterWorkerDelete error", err)
		return &respStruct, err
	}
	err = util.HandleJsonResponse(jsonStr, &respStruct)
	if respStruct.Body == "" || len(respStruct.Body) == 0 {
		respStruct.Body = jsonStr
	}
	return &respStruct, err
}

/*
更新网点覆盖的服务
*/
func (ability *Ability654) TmallServicecenterServicestoreUpdateservicestorecoverservice(req *request.TmallServicecenterServicestoreUpdateservicestorecoverserviceRequest, session string) (*response.TmallServicecenterServicestoreUpdateservicestorecoverserviceResponse, error) {
	if ability.Client == nil {
		return nil, errors.New("Ability654 topClient is nil")
	}
	var jsonStr, err = ability.Client.ExecuteWithSession("tmall.servicecenter.servicestore.updateservicestorecoverservice", req.ToMap(), req.ToFileMap(), session)
	var respStruct = response.TmallServicecenterServicestoreUpdateservicestorecoverserviceResponse{}
	if err != nil {
		log.Println("tmallServicecenterServicestoreUpdateservicestorecoverservice error", err)
		return &respStruct, err
	}
	err = util.HandleJsonResponse(jsonStr, &respStruct)
	if respStruct.Body == "" || len(respStruct.Body) == 0 {
		respStruct.Body = jsonStr
	}
	return &respStruct, err
}

/*
更新网点容量
*/
func (ability *Ability654) TmallServicecenterServicestoreUpdateservicestorecapacity(req *request.TmallServicecenterServicestoreUpdateservicestorecapacityRequest, session string) (*response.TmallServicecenterServicestoreUpdateservicestorecapacityResponse, error) {
	if ability.Client == nil {
		return nil, errors.New("Ability654 topClient is nil")
	}
	var jsonStr, err = ability.Client.ExecuteWithSession("tmall.servicecenter.servicestore.updateservicestorecapacity", req.ToMap(), req.ToFileMap(), session)
	var respStruct = response.TmallServicecenterServicestoreUpdateservicestorecapacityResponse{}
	if err != nil {
		log.Println("tmallServicecenterServicestoreUpdateservicestorecapacity error", err)
		return &respStruct, err
	}
	err = util.HandleJsonResponse(jsonStr, &respStruct)
	if respStruct.Body == "" || len(respStruct.Body) == 0 {
		respStruct.Body = jsonStr
	}
	return &respStruct, err
}

/*
修改工人信息
*/
func (ability *Ability654) TmallServicecenterWorkerUpdate(req *request.TmallServicecenterWorkerUpdateRequest, session string) (*response.TmallServicecenterWorkerUpdateResponse, error) {
	if ability.Client == nil {
		return nil, errors.New("Ability654 topClient is nil")
	}
	var jsonStr, err = ability.Client.ExecuteWithSession("tmall.servicecenter.worker.update", req.ToMap(), req.ToFileMap(), session)
	var respStruct = response.TmallServicecenterWorkerUpdateResponse{}
	if err != nil {
		log.Println("tmallServicecenterWorkerUpdate error", err)
		return &respStruct, err
	}
	err = util.HandleJsonResponse(jsonStr, &respStruct)
	if respStruct.Body == "" || len(respStruct.Body) == 0 {
		respStruct.Body = jsonStr
	}
	return &respStruct, err
}

/*
删除网点容量
*/
func (ability *Ability654) TmallServicecenterServicestoreDeleteservicestorecapacity(req *request.TmallServicecenterServicestoreDeleteservicestorecapacityRequest, session string) (*response.TmallServicecenterServicestoreDeleteservicestorecapacityResponse, error) {
	if ability.Client == nil {
		return nil, errors.New("Ability654 topClient is nil")
	}
	var jsonStr, err = ability.Client.ExecuteWithSession("tmall.servicecenter.servicestore.deleteservicestorecapacity", req.ToMap(), req.ToFileMap(), session)
	var respStruct = response.TmallServicecenterServicestoreDeleteservicestorecapacityResponse{}
	if err != nil {
		log.Println("tmallServicecenterServicestoreDeleteservicestorecapacity error", err)
		return &respStruct, err
	}
	err = util.HandleJsonResponse(jsonStr, &respStruct)
	if respStruct.Body == "" || len(respStruct.Body) == 0 {
		respStruct.Body = jsonStr
	}
	return &respStruct, err
}

/*
服务工单拉取
*/
func (ability *Ability654) TmallServicecenterTaskGet(req *request.TmallServicecenterTaskGetRequest, session string) (*response.TmallServicecenterTaskGetResponse, error) {
	if ability.Client == nil {
		return nil, errors.New("Ability654 topClient is nil")
	}
	var jsonStr, err = ability.Client.ExecuteWithSession("tmall.servicecenter.task.get", req.ToMap(), req.ToFileMap(), session)
	var respStruct = response.TmallServicecenterTaskGetResponse{}
	if err != nil {
		log.Println("tmallServicecenterTaskGet error", err)
		return &respStruct, err
	}
	err = util.HandleJsonResponse(jsonStr, &respStruct)
	if respStruct.Body == "" || len(respStruct.Body) == 0 {
		respStruct.Body = jsonStr
	}
	return &respStruct, err
}

/*
资料上传接口
*/
func (ability *Ability654) AlipayBaoxianClaimUploadattachment(req *request.AlipayBaoxianClaimUploadattachmentRequest) (*response.AlipayBaoxianClaimUploadattachmentResponse, error) {
	if ability.Client == nil {
		return nil, errors.New("Ability654 topClient is nil")
	}
	var jsonStr, err = ability.Client.Execute("alipay.baoxian.claim.uploadattachment", req.ToMap(), req.ToFileMap())
	var respStruct = response.AlipayBaoxianClaimUploadattachmentResponse{}
	if err != nil {
		log.Println("alipayBaoxianClaimUploadattachment error", err)
		return &respStruct, err
	}
	err = util.HandleJsonResponse(jsonStr, &respStruct)
	if respStruct.Body == "" || len(respStruct.Body) == 0 {
		respStruct.Body = jsonStr
	}
	return &respStruct, err
}

/*
更新赔案
*/
func (ability *Ability654) AlipayBaoxianClaimUpdate(req *request.AlipayBaoxianClaimUpdateRequest) (*response.AlipayBaoxianClaimUpdateResponse, error) {
	if ability.Client == nil {
		return nil, errors.New("Ability654 topClient is nil")
	}
	var jsonStr, err = ability.Client.Execute("alipay.baoxian.claim.update", req.ToMap(), req.ToFileMap())
	var respStruct = response.AlipayBaoxianClaimUpdateResponse{}
	if err != nil {
		log.Println("alipayBaoxianClaimUpdate error", err)
		return &respStruct, err
	}
	err = util.HandleJsonResponse(jsonStr, &respStruct)
	if respStruct.Body == "" || len(respStruct.Body) == 0 {
		respStruct.Body = jsonStr
	}
	return &respStruct, err
}

/*
天猫服务平台服务核销
*/
func (ability *Ability654) TmallServiceCodeConsume(req *request.TmallServiceCodeConsumeRequest, session string) (*response.TmallServiceCodeConsumeResponse, error) {
	if ability.Client == nil {
		return nil, errors.New("Ability654 topClient is nil")
	}
	var jsonStr, err = ability.Client.ExecuteWithSession("tmall.service.code.consume", req.ToMap(), req.ToFileMap(), session)
	var respStruct = response.TmallServiceCodeConsumeResponse{}
	if err != nil {
		log.Println("tmallServiceCodeConsume error", err)
		return &respStruct, err
	}
	err = util.HandleJsonResponse(jsonStr, &respStruct)
	if respStruct.Body == "" || len(respStruct.Body) == 0 {
		respStruct.Body = jsonStr
	}
	return &respStruct, err
}

/*
喵师傅定案核销状态查询
*/
func (ability *Ability654) TmallMsfIdentifyStatusQuery(req *request.TmallMsfIdentifyStatusQueryRequest, session string) (*response.TmallMsfIdentifyStatusQueryResponse, error) {
	if ability.Client == nil {
		return nil, errors.New("Ability654 topClient is nil")
	}
	var jsonStr, err = ability.Client.ExecuteWithSession("tmall.msf.identify.status.query", req.ToMap(), req.ToFileMap(), session)
	var respStruct = response.TmallMsfIdentifyStatusQueryResponse{}
	if err != nil {
		log.Println("tmallMsfIdentifyStatusQuery error", err)
		return &respStruct, err
	}
	err = util.HandleJsonResponse(jsonStr, &respStruct)
	if respStruct.Body == "" || len(respStruct.Body) == 0 {
		respStruct.Body = jsonStr
	}
	return &respStruct, err
}

/*
喵师傅服务预约API
*/
func (ability *Ability654) TmallMsfReservation(req *request.TmallMsfReservationRequest, session string) (*response.TmallMsfReservationResponse, error) {
	if ability.Client == nil {
		return nil, errors.New("Ability654 topClient is nil")
	}
	var jsonStr, err = ability.Client.ExecuteWithSession("tmall.msf.reservation", req.ToMap(), req.ToFileMap(), session)
	var respStruct = response.TmallMsfReservationResponse{}
	if err != nil {
		log.Println("tmallMsfReservation error", err)
		return &respStruct, err
	}
	err = util.HandleJsonResponse(jsonStr, &respStruct)
	if respStruct.Body == "" || len(respStruct.Body) == 0 {
		respStruct.Body = jsonStr
	}
	return &respStruct, err
}

/*
鉴定担保资金订单履约
*/
func (ability *Ability654) AlibabaIdleApprizeOrderFulfillment(req *request.AlibabaIdleApprizeOrderFulfillmentRequest) (*response.AlibabaIdleApprizeOrderFulfillmentResponse, error) {
	if ability.Client == nil {
		return nil, errors.New("Ability654 topClient is nil")
	}
	var jsonStr, err = ability.Client.Execute("alibaba.idle.apprize.order.fulfillment", req.ToMap(), req.ToFileMap())
	var respStruct = response.AlibabaIdleApprizeOrderFulfillmentResponse{}
	if err != nil {
		log.Println("alibabaIdleApprizeOrderFulfillment error", err)
		return &respStruct, err
	}
	err = util.HandleJsonResponse(jsonStr, &respStruct)
	if respStruct.Body == "" || len(respStruct.Body) == 0 {
		respStruct.Body = jsonStr
	}
	return &respStruct, err
}
